package com.tj.collection.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.tj.collection.db.dao.BizStatsSqlDao;
import com.tj.collection.db.entity.BizStatsSqlEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2019/8/1
 * Time: 下午2:34
 */
@Repository
public class BizStatsSqlDaoImpl extends AbstractBaseMapper<BizStatsSqlEntity> implements BizStatsSqlDao {

    @Override
    public List<Object> executeStatsSql(String sql) {
        Map<String, Object> params = new HashMap<>();
        params.put("sql", sql);
        return getSqlSession().selectList(getStatement("executeStatsSql"), params);
    }


}
